import request from '@/utils/request'

// 查询考试客户端关联列表
export function listClients(query) {
  return request({
    url: '/Teacher/clients/list',
    method: 'get',
    params: query
  })
}

// 查询考试客户端关联详细
export function getClients(examClientId) {
  return request({
    url: '/Teacher/clients/' + examClientId,
    method: 'get'
  })
}

// 新增考试客户端关联
export function addClients(data) {
  return request({
    url: '/Teacher/clients',
    method: 'post',
    data: data
  })
}

// 修改考试客户端关联
export function updateClients(data) {
  return request({
    url: '/Teacher/clients',
    method: 'put',
    data: data
  })
}

// 删除考试客户端关联
export function delClients(examClientId) {
  return request({
    url: '/Teacher/clients/' + examClientId,
    method: 'delete'
  })
}
